import request from '@/utils/request';

export type ArticleQueryActionType = {
  channel_id: number;
  timestamp?: number;
};
/** 获取所有的频道列表 */
export const getArticleListApi = (params: ArticleQueryActionType) => {
  return request({
    url: '/v1_0/articles',
    params,
  });
};
// 获取文章详情
export const getArticleDetailByIdApi = (id: string) => {
  return request({
    url: '/v1_0/articles/' + id,
  });
};
